package com.t10;

/**
 * Created by xuyiwei on 2018/7/22.
 */
interface SimpleInterface{
    void f();
}
class Outer5 {
    private class Inner implements SimpleInterface {
        public void f() {
            System.out.println("Outer5.Inner.f");
        } }
    public SimpleInterface get() { return new Inner(); }
    public Inner get2() { return new Inner(); }
}
public class E11_HiddenInnerClass {
    public static void main(String args[]) {
        Outer5 out = new Outer5();
        SimpleInterface si = out.get();
        si = out.get2();
       //因为内部类完全被隐藏 因此不能这么转换
        //! Inner i1 = out.get2();
        //! Inner i2 = (Inner)si;
    }
}